package cn.pfz.Service;


import cn.pfz.domain.Employee;
import cn.pfz.query.EmployeeQuery;

import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeSerives {

    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    PageInfo<Employee> list(EmployeeQuery qo);

    void batchDeleteByEmployeeIds(Long[] ids);

    Employee selectByUsername(String username);
//导出
    Workbook getWrokbook();

//模板
    Workbook getWrokbookModel();

    void importXls(MultipartFile file)throws IOException;
}
